package com.ucode.model.hrm.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "人力资源管理系统 - 员工合同续签Form")
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
public class HrmEmployeeContractRenewForm {
    /**
     * 员工合同ID
     */
    @Schema(description = "员工合同ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "员工合同ID不能为空")
    private Long contractId;
    /**
     * 员工合同模板ID
     */
    @Schema(description = "员工合同模板编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "员工合同模板编号不能为空")
    private Long contractTplId;
    /**
     * 续签公司ID
     */
    @Schema(description = "续签公司编号", requiredMode = Schema.RequiredMode.AUTO)
    private Long signCompanyId;
    /**
     * 续签结束时间
     */
    @Schema(description = "续签结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "续签结束时间不能为空")
    private LocalDate endDate;

}
